<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
<xsl:template match="HeaderAndClass">

<xsl:comment>IF YOU ARE VIEWING THIS IN VISUAL STUDIO, RIGHT CLICK AND SELECT 'VIEW IN BROWSER' TO SEE THIS FILE CORRECTLY</xsl:comment>

<html>
  <head>
    
    <title>GENNIT Readme for <xsl:value-of select="HeaderInfo/ProjectName"/> Castle ActiveRecord Project</title>
    <style type="text/css">
    
        body { font-family: 'Century Gothic', 'Verdana'; font-size:14pt; }
        #title { font-size:22pt; margin-left:10px; }
        p { margin-left:10px; }
        ul li { margin-left:10px; margin-bottom:20px; }
        div.tip { border:solid 1px #c0c0c0; background-color:#FFFFDD; padding:10px; font-size:10pt; margin-left:40px; margin-right:40px; }
        span.code { font-family: 'Courier New'; }
	table { margin-left:20px; width:90%; border-collapse:collapse; }
	table tr td { border:solid 1px #f0f0f0; padding:10px; }
    </style>
  </head>
  <body>
    <a href="http://www.gennit.com"><img src="http://www.gennit.com/img/logo.png" border="0" style="vertical-align:middle" /></a><div id="title"><xsl:value-of select="HeaderInfo/ProjectName"/> Project - README</div>
    <hr size="1" />
    <p>Hey! Well done you've got this Castle ActiveRecord Template download of your <xsl:value-of select="HeaderInfo/ProjectName"/> project downloaded. <a href="#quickStart">Jump to QuickStart</a></p>
    <hr size="1" />
    <p><strong>Generated File Information</strong></p>
    
    <table>
	<tr>
		<td><a href="ActiveRecord.xml">ActiveRecord.xml</a></td>
		<td>ActiveRecord configuration file which contains database connection string.</td>
	</tr>
	<tr>
		<td><a href="build.cmd">build.cmd</a></td>
		<td>A command line builder for the <xsl:value-of select="HeaderInfo/ProjectName"/> DAL DLL.</td>
	</tr>
	<tr>
		<td><a><xsl:attribute name="href"><xsl:value-of select="HeaderInfo/ProjectName"/>Dal.csproj</xsl:attribute><xsl:value-of select="HeaderInfo/ProjectName"/>Dal.csproj</a></td>
		<td>VS.NET 2005 Project File for the Castle ActiveRecord DAL.</td>
	</tr>
	<tr>
		<td><a href="CS/DataObject.cs">CS/DataObject.cs</a></td>
		<td>An abstract DataObject base class for ActiveRecord objects and IDataObject interface.</td>
	</tr>
	<tr>
		<td><a href="CS/AssemblyInfo.cs">CS/AssemblyInfo.cs</a></td>
		<td>Assembly information for the <xsl:value-of select="HeaderInfo/ProjectName"/> DAL.</td>
	</tr>

<xsl:for-each select="Classes/Class">
	<tr>
		<td><a><xsl:attribute name="href">CS/<xsl:value-of select="Name"/>.cs</xsl:attribute>CS/<xsl:value-of select="Name"/>.cs</a></td>
		<td><xsl:value-of select="Name"/> ActiveRecord partial class.</td>
	</tr>
</xsl:for-each>
<xsl:for-each select="Classes/Class">
	<tr>
		<td><a><xsl:attribute name="href">CS/Methods/<xsl:value-of select="Name"/>.cs</xsl:attribute>CS/Methods/<xsl:value-of select="Name"/>.cs</a></td>
		<td><xsl:value-of select="Name"/> ActiveRecord partial class which implements ActiveRecord methods for simpler access.</td>
	</tr>
</xsl:for-each>
	<tr>
		<td><a href="CS/Tests/NUnitBase.cs">CS/Tests/NUnitBase.cs</a></td>
		<td>Base class for NUnit test setup.</td>
	</tr>
<xsl:for-each select="Classes/Class">
	<tr>
		<td><a><xsl:attribute name="href">CS/Tests/<xsl:value-of select="Name"/>Test.cs</xsl:attribute>CS/Tests/<xsl:value-of select="Name"/>Test.cs</a></td>
		<td><xsl:value-of select="Name"/> class NUnit functionality test.</td>
	</tr>
</xsl:for-each>
    </table>
    

    
    <hr size="1" />
    <p><strong><a name="quickStart">Quick Start Guide</a></strong></p>
    <ul>
        <li>Ensure .NET is installed at -<br /><span class="code" style="font-size:13pt"><xsl:value-of select="ref3"/></span></li>
        <li>Ensure you have Castle ActiveRecord installed at -<br />
        <span class="code" style="font-size:12pt"><xsl:value-of select="HeaderInfo/ref1"/></span>
        <br /><br />
        If not <a href="http://castleproject.org/activerecord/index.html">download Castle ActiveRecord</a> or modify your .csproj file and/or build.cmd.</li>
        <li>Ensure you have NUnit installed at -<br />
        <span class="code" style="font-size:12pt"><xsl:value-of select="HeaderInfo/ref2"/></span>
        <br /><br />
        If not <a href="http://nunit.org">download NUnit</a> or modify your .csproj file and/or build.cmd.</li>
        <li>Connect to your SQL Server instance and create the database using the SQL script located at <a><xsl:attribute name="href">SQL\Database<xsl:value-of select="HeaderInfo/ProjectName"/>.sql</xsl:attribute>SQL\Database<xsl:value-of select="HeaderInfo/ProjectName"/>.sql</a></li>
    </ul>
    <div class="tip"><strong>Database Tip</strong><br />You can use <span class="code">ActiveRecordStarter.CreateSchema ( );</span> within your code to generate
    the database schema automatically (no need for the SQL script). The SQL script attached uses logical names for relationships which makes administration simpler.<br /><br />
    You can use this script generation with other datasource providers (MySQL etc..)</div>
    <ul>
        <li>Ensure your database can be accessed via the connection string -<br /><span class="code" style="font-size:12pt"><xsl:value-of select="HeaderInfo/DBConnection"/></span><br /><br />
        If not, you need to modify your <a href="ActiveRecord.xml">ActiveRecord.xml</a> <span class="code" style="font-size:12pt;margin-left:5px">hibernate.connection.connection_string</span> XML attribute.</li>
        <li>Build your project and run it. NUnit will show green/yellow lights if your installation and DAL is working successfully.</li>
	<li>If you are not familar with <a href="http://castleproject.org/activerecord/index.html">Castle ActiveRecord checkout their site and documentation</a>.</li>
    </ul>
    <hr style="1" />
    If you have any problems check the <a href="http://forums.gennit.com">GENNIT Forums</a> for limited support.
    <br/><br/><br/><br/>
  </body>
</html>
     
      <xsl:for-each select="Classes/Class">

        
      </xsl:for-each>

    </xsl:template>
  

</xsl:stylesheet>